package unilearn.domain;

import java.sql.Date;

/**
 * @author Ben Morall, 4158768
 * @author David Oliver, 4084551
 * @version 0.1, 27 April 2008, initial creation, blm
 * @version 0.2, 30 April 2008, Added assignmentID to Constructor, blm
 * @version 0.3, Apr 30, 2008, Added remaining get/set functions, dro
 */
public class Assignment
{

	private boolean assignmentAcceptingSubmissions;
	private long assignmentID;
	private String assignmentDescription;
	private Date assignmentDueDate;
	private long assignmentFileID;
	private String assignmentName;
	private Date assignmentReleaseDate;
	private long assignmentSubjectID;

	/**
	 * Blank constructor for creating an assignment to put into the database (it doesn't yet
	 * have an assignmentID.
	 */
	public Assignment()
	{
	}

	/**
	 * Creates a new instance of Assignment
	 */
	public Assignment(long assignmentID)
	{
		this.assignmentID = assignmentID;
	}

	public boolean getAssignmentAcceptingSubmissions()
	{
		return assignmentAcceptingSubmissions;
	}

	public long getAssignmentID()
	{
		return assignmentID;
	}

	public String getAssignmentDescription()
	{
		return assignmentDescription;
	}

	public Date getAssignmentDueDate()
	{
		return assignmentDueDate;
	}

	public long getAssignmentFileID()
	{
		return assignmentFileID;
	}

	public String getAssignmentName()
	{
		return assignmentName;
	}

	public Date getAssignmentReleaseDate()
	{
		return assignmentReleaseDate;
	}

	public long getAssignmentSubjectID()
	{
		return assignmentSubjectID;
	}

	public void setAssignmentName(String assignmentName)
	{
		this.assignmentName = assignmentName;
	}

	public void setAssignmentDescription(String assignmentDesc)
	{
		this.assignmentDescription = assignmentDesc;
	}

	public void setAssignmentDueDate(Date assignmentDueDate)
	{
		this.assignmentDueDate = assignmentDueDate;
	}

	public void setAssignmentAcceptingSubmissions(boolean assignmentAcceptingSubmissions)
	{
		this.assignmentAcceptingSubmissions = assignmentAcceptingSubmissions;
	}

	public void setAssignmentReleaseDate(Date assignmentReleaseDate)
	{
		this.assignmentReleaseDate = assignmentReleaseDate;
	}

	public void setAssignmentSubjectID(long assignmentSubjectID)
	{
		this.assignmentSubjectID = assignmentSubjectID;
	}

	public void setAssignmentFileID(long assignmentFileID)
	{
		this.assignmentFileID = assignmentFileID;
	}
}
